home *** CD-ROM | disk | FTP | other *** search
- unit Filemode;
- interface
- uses Forms, Buttons, StdCtrls, ExtCtrls;
-
- Type
- TFileModeDlg = class(TForm)
- OKBtn: TBitBtn;
- CancelBtn: TBitBtn;
- HelpBtn: TBitBtn;
- Bevel1: TBevel;
- FileAccess: TRadioGroup;
- FileSharing: TRadioGroup;
- procedure OKBtnClick(Sender: TObject);
- procedure FormActivate(Sender: TObject);
- public
- FileShareMode: Word;
- end;
-
- implementation
- {$R *.DFM}
-
- procedure TFileModeDlg.FormActivate(Sender: TObject);
- begin
- FileAccess.ItemIndex := (FileShareMode MOD $10);
- FileSharing.ItemIndex := (FileShareMode SHR 4)
- end;
-
- procedure TFileModeDlg.OKBtnClick(Sender: TObject);
- begin
- FileShareMode := FileAccess.ItemIndex + (FileSharing.ItemIndex SHL 4)
- end;
-
- end.